package com.njtoyo.taxi.admin.service.open.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.master.entity.CallEndSend;
import com.njtoyo.taxi.admin.mapper.master.mapper.CallEndSendMapper;
import com.njtoyo.taxi.admin.service.open.CallEndSendService;
import com.taxi.entity.common.RestResult;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Map;

/**
 * @author: xyhang
 * @create: 2024-07-03 16:37
 **/
@Service
@DS(Const.PRIMARY_DS)
public class CallEndSendServiceImpl  extends ServiceImpl<CallEndSendMapper, CallEndSend> implements CallEndSendService {
    @Autowired
    CallEndSendMapper callEndSendMapper;
    @Override
    public RestResult selectCallEndSendList(Integer current, Integer size, String tel, String beginTime, String endTime, Long rideId) {
        Page page = new Page(current, size);
        Page<Map<String, Object>> pages = callEndSendMapper.selectCallEndSendList(page,tel,beginTime,endTime,rideId );
        return RestResult.success(pages);
    }
}
